package com.leiusual.mall_ad

import android.content.Context
import android.util.Log
import io.flutter.plugin.common.BinaryMessenger
import io.flutter.plugin.common.StandardMessageCodec
import io.flutter.plugin.platform.PlatformView
import io.flutter.plugin.platform.PlatformViewFactory

/**
 * author: leiusual
 * create on: 2020/10/28
 * description:
 */
class MallAdViewFactory(
    private val messenger: BinaryMessenger
) : PlatformViewFactory(StandardMessageCodec.INSTANCE) {

  companion object {
    private val TAG = MallAdViewFactory::class.java.simpleName
  }

  override fun create(context: Context, viewId: Int, args: Any?): PlatformView {
    Log.d(TAG, "create")
    return MallAdView(context, viewId, messenger)
  }
}